มาตรา ๒๑ ในการคำนวณระยะเวลาจำคุก ให้นับวันเริ่มจำคุกรวมคำนวณเข้าด้วย และให้นับเป็นหนึ่งวันเต็มโดยไม่ต้องคำนึงถึงจำนวนชั่วโมง
ถ้าระยะเวลาที่คำนวณนั้นกำหนดเป็นเดือน ให้นับสามสิบวันเป็นหนึ่งเดือน ถ้ากำหนดเป็นปี ให้คำนวณตามปีปฏิทินในราชการ
เมื่อผู้ต้องคำพิพากษาถูกจำคุกครบกำหนดแล้ว ให้ปล่อยตัวในวันถัดจากวันที่ครบกำหนด
Unofficial Translation
Section 21. In the calculation of the period of imprisonment, the first day of imprisonment shall be calculated as one whole day regardless of the number of hours.
If the period to be calculated is determined in months, a month shall consist of thirty days, and if determined in years, it shall be calculated following the official calendar.
When a sentenced person has completely served the term of his or her imprisonment, the discharge shall take place on the day following the date of completion of the term.